﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using HigLabo.Net;

namespace HigLabo.WindowsAzure.RestService.ServiceManagement
{
    public class GetOperationStatusCommand : ManagementServiceCommand<GetOperationStatusResult>
    {
        public String RequestID { get; private set; }
        public GetOperationStatusCommand(String requestID)
        {
            if (String.IsNullOrEmpty(requestID))
            {
                throw new ArgumentException("requestID must not be null", "requestID");
            }
            this.RequestID = requestID;
        }
        public override string GetRequestUri()
        {
            return String.Format("operations/{0}",this.RequestID);
        }
        public override HttpMethodName MethodName
        {
            get { return HttpMethodName.Get; }
        }
        public override Dictionary<String, String> GetRequestHeaders()
        {
            return null;
        }
        public override System.IO.Stream GetRequestBodyStream()
        {
            return null;
        }
    }
}
